// pages/demo1/demo1.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
      msg:"hello wrold",
      num:1,
      person:{
        age:21,
        name:"pxl",
        id:20192330
      }
  },
  handtap:function(e){
    console.log(e);
    const operation = e.currentTarget.dataset.operation;
    this.setData({
        num:this.data.num += operation
    })
  },
  inputbind:function(e){
this.setData({
  num:parseInt(e.detail.value)
});
  }
})